<% div_id = "date_div_" + event_date.to_s -%> 
<li class="events_category_item" >
  <%= image_tag("arrows.gif") %>
  <%= link_to_remote(format_event_date(event_date, unit), 
    :url => {:controller => "ecases", :action => :set_opened_nodes_for_ecase, :id => @ecase},
    :before => "onEventDate(this)",
    :with => "params") %>
  <div id="<%= div_id %>" <%= "style=\"display: none;\"" unless @opened_nodes.include? div_id %> >
    <ul>
      <% collection = events.select &get_event_select_block(event_date, unit) -%>
      <%= render :partial => "ecases/event", :collection => collection %>
    </ul>
  </div>
</li>